package com.flower.enjoyment.flower.config;

/**
 * 微信小程序 配置
 */
public class WxSPConfig {

    /*微信公众号的ID*/
    public static final String APP_ID_PUBLIC = "";

    /*微信公众号的SECRT*/
    public static final String SECRET_PUBLIC = "";

    /*商户号*/
    public static final String MCH_ID = "1555226441";

    /*商户平台的秘钥*/
    public  static final String MCH_KEY="60760ae165f7e98971b63930962b05e3";

    /*小程序的ID*/
    public static final String APP_ID_SMALL_PROGRAM = "wx0b35f6315c41b639";

    /*小程序的appsecret*/
    public static final String SECRET_SMALL_PROGRAM = "";

    /*获取微信小程序的access_token接口*/
    public static final String ACCESS_TOKEN_SMALL_PROGRAM = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    /*获取微信网页的access_token*/
    public static final String ACCEAA_Token_WEB = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    /*获取微信用户的信息*/
    public static final String USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /*登录凭证校验。通过 wx.login() 接口获得临时登录凭证 code 后传到开发者服务器调用此接口完成登录流程*/
    public static final String CODE2_SESSION_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code";

    /*统一下单 URL*/
    public static final String UNIFIED_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

}
